package com.airui.service;

import com.airui.dao.ZhangWuDao;
import com.airui.domain.ZhangWu;

import java.util.List;

public class ZhangWuService {
    private ZhangWuDao zd = new ZhangWuDao();

    public List<ZhangWu> selectAll() {
        List<ZhangWu> list = zd.selectAll();
        return list;
    }

    public List<ZhangWu> selectByCreateTime(String start, String end) {
        return zd.selectByCreateTime(start, end);
    }

    public void addZhangwu(ZhangWu zhangWu) {
        zd.addZhangwu(zhangWu);
    }

    public boolean editZhangWu(ZhangWu zhangWu) {
        return zd.editZhangWu(zhangWu);
    }

    public boolean deleteZhangWu(int nextInt) {
        return zd.deleteZhangWu(nextInt);
    }

    public List<ZhangWu> searchZhangWu(String next) {
        return zd.searchZhangWu(next);
    }
}
